<style>
    .layui-form .layui-form-item .layui-inline .layui-form-label {
        width: 200px;
        font-size: 18px;
        font-weight: bold;
    }
    .layui-form .layui-form-item .layui-inline .input_show {
        line-height: 40px;
        font-size: 16px;
        width: 250px;
    }
</style>
<form class="layui-form  seller-alone-form" id="userAdd" style="padding:20px;height: auto;min-height: 600px;">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>
            <a href="{:url('source')}" style="color: #428bca;font-weight:bold;" >Cards Fund Source</a> / Edit
        </legend>
    </fieldset>
    <br/>

    <div style="width:auto;font-size: 20px;font-weight: bold;padding-left: 20px;color: red">
        Source Token：{$source_token}
    </div>
    <br/>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">name：</label>
            <div class="layui-input-inline input_show">
                {$name}
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">url：</label>
            <div class="layui-input-inline input_show">
                {$url}
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">Detail：</label>
            <div class="layui-input-inline input_show" style="width: auto">
                    <pre class="layui-code" lay-title="JavaScript" lay-skin="notepad" >{$detail}</pre>
            </div>
        </div>
    </div>
    <div class="layui-form-item" style="padding-top: 100px;">
        <div class="layui-input-block">
<!--            <button type="button" class="layui-btn" lay-submit lay-filter="edit">confirm</button>-->
            <a href="{:url('source')}" class="layui-btn layui-btn-primary">{:lang('back')}</a>
        </div>
    </div>
</form>

<script>
    layui.use(['form'], function () {
        var form = layui.form;
        form.render();
        form.on('submit(edit)', function(data){
            layer.msg('update功能开发中.');
            return false;
            JsPost("{:url('sourceAdd')}", '', function(res){
                if(res.code){
                    layer.msg(res.msg, {time:1000},function(){
                        window.location.href = "{:url('source')}";
                    });
                }else{
                    layer.msg(res.msg);
                }
            })
        });
    });
</script>
